package com.onemore.task.model;

import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.voovan.tools.log.Logger;

import com.alibaba.fastjson.JSONObject;
import com.onemore.task.JdbcGlobal;

public class ModelCangku extends JdbcGlobal{
	final static public String field[] = new String[] {"CKDM","WithoutCode"};
    static public boolean checkValid(String CKDM) throws SQLException
    {
    	if(search("CANGKU", "CKDM='"+CKDM+"'")) {
    		return true;
    	}
    	SQLException e = new SQLException("仓库代码无效，在数据库中无法找到");
    	throw e;
    	
    }
}
